var object = {
    "id" : 1,
    "name" : "hujingyu",
    "sex" : 1,
    "secText" : "男"
}

var object_update = {
    "id" : 1,
    "name" : "hujingyu",
    "sex" : 2
}
function f(object,object_update) {
    var object_result = {};
    for(var key in object_update){
        //console.log(key,obj[key])
        if (object_update[key] != object[key]){
            object_result[key]= object_update[key] ;
        }
    }
    return object_result;
}
